package com.guaoran.entity;

import lombok.Data;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.*;
import java.io.Serializable;

/**
 * @author : 孤傲然
 * @Description :
 *  操作员
 * @date :2018/1/25 17:15
 */
@Entity
@Data
@Table(name = "system_optr")
@DynamicInsert
@DynamicUpdate
public class SystemOptr extends BaseEntity implements Serializable {
    private static final long serialVersionUID = -4201730973194000422L;
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long id;
    private String login;
    private String pwd;
    private String name;
    private String avatar;
    private String phone;
    private Integer status;
    protected SystemOptr() {
    }

    public SystemOptr(String login, String pwd, String name, String phone, Integer status) {
        this.login = login;
        this.pwd = pwd;
        this.name = name;
        this.phone = phone;
        this.status = status;
    }

    public SystemOptr(String login, String pwd, String name, String avatar, String phone, Integer status) {
        this.login = login;
        this.pwd = pwd;
        this.name = name;
        this.avatar = avatar;
        this.phone = phone;
        this.status = status;
    }

    public SystemOptr(String login, String pwd, String name) {
        this.login = login;
        this.pwd = pwd;
        this.name = name;
    }
}
